fix test_cargo_build_auth
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 14 May 2016 20:49:39 +0000 (23:49 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 18 May 2016 22:42:29 +0000 (01:42 +0300)
tests/test_cargo_build_auth.rs

index c12bb81a705ea6d8125e053d999f3566d87179a0..1276f2c12f78971d70e28744bdc9931489695d41 100644 (file)
@@ -99,12 +99,8 @@ test!(http_auth_offered {
         ");
 
     assert_that(p.cargo_process("build"),
-                execs().with_status(101).with_stdout(&format!("\
+                execs().with_status(101).with_stderr(&format!("\
 [UPDATING] git repository `http://{addr}/foo/bar`
-",
-        addr = addr,
-        ))
-                      .with_stderr(&format!("\
 [ERROR] Unable to update http://{addr}/foo/bar
 
 Caused by:
@@ -146,7 +142,7 @@ test!(https_something_happens {
         ");
 
     assert_that(p.cargo_process("build").arg("-v"),
-                execs().with_status(101).with_stdout(&format!("\
+                execs().with_status(101).with_stderr_contains(&format!("\
 [UPDATING] git repository `https://{addr}/foo/bar`
 ",
         addr = addr,
@@ -190,7 +186,7 @@ test!(ssh_something_happens {
         .file("src/main.rs", "");
 
     assert_that(p.cargo_process("build").arg("-v"),
-                execs().with_status(101).with_stdout(&format!("\
+                execs().with_status(101).with_stderr_contains(&format!("\
 [UPDATING] git repository `ssh://{addr}/foo/bar`
 ",
         addr = addr,